﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 客户地址
    /// </summary>
    [ExLanguageKey("SysCustomerAddress")]
    public partial class SysCustomerAddress
    {
        #region 数据库字段

        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        public int SysCustomerID { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [ExLanguageKey("SysCustomerAddressName")]
        public string SysCustomerAddressName { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        [ExLanguageKey("PY")]
        public string PY { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [ExLanguageKey("SysCustomerAddressPhone")]
        public string SysCustomerAddressPhone { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        [ExLanguageKey("IsDefault")]
        public bool IsDefault { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [ExLanguageKey("Province")]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [ExLanguageKey("City")]
        public string City { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        [ExLanguageKey("District")]
        public string District { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [ExLanguageKey("Address")]
        public string Address { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [ExLanguageKey("Longitude")]
        public decimal? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [ExLanguageKey("Latitude")]
        public decimal? Latitude { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        [ExLanguageKey("PostCode")]
        public string PostCode { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [ExLanguageKey("IsDel")]
        public bool IsDel { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        #endregion

        #region EF外键对象

        /// <summary>
        /// 客户ID
        /// 客户信息
        /// </summary>
        [ExLanguageKey("SysCustomer")]
        public SysCustomer SysCustomer { get; set; }

        #endregion
    }
}
